<?php
/**
 * Created by PhpStorm.
 * User: wzy12
 * Date: 2018/10/16
 * Time: 14:24
 */

namespace app\admin\validate;


use think\Validate;

class ComponentSms extends Validate
{
    protected $rule = [
        'access_key|AccessKey'  =>  'require',
        'access_secret|AccessKeySecret'  =>  'require',
        'receive_phone|接收人号码'  =>  'require|length:6,11',
        'signers_name|签名名称'  =>  'require',
        'template_code|短位模板CODE'  =>  'require',
        '__token__' => 'token|require'
    ];

    protected $scene = [
        'status' => ['__token__', 'status' => 'require|number'],
        'alipay' => ['__token__', 'access_key', 'access_secret', 'signers_name', 'template_code'],
    ];
}